package com.atguigu.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: chao
 * @Date:2021/7/4-07-04-15:53
 * @Description:com.atguigu.yygh.hosp.config
 * @version:1.0
 */
@Configuration
@MapperScan("com.atguigu.yygh.hosp.mapper")
@EnableDiscoveryClient
public class HospConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
